<?php
// 节点模型
class Web_noteModel extends CommonModel {
	protected $_link = array(
	
		'web_note_class'=>array(
			'mapping_type' =>BELONGS_TO,
			'class_name'  =>'web_note_class',
			'foreign_key'=>'id',
			'as_fields'	=>	'name',
			'parent_key' => 'id',
		),
		
	    'web_note'=>array(
			'mapping_type' =>BELONGS_TO,
			'class_name'  =>'web_note',//表名
			'foreign_key'=>'id', //对应的外字段
			'as_fields'	=>	'status', //需要的字段
			'parent_key' => 'class', //表的对应字段
		),
		
	);
}
?>